window: Make set_focus equal to grab_focus
authorMatthias Clasen <mclasen@redhat.com>
Sun, 29 Mar 2020 19:26:56 +0000 (15:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 9 Apr 2020 21:50:28 +0000 (17:50 -0400)
commit2a18f2150d94600538d867257a76cb0feb0d615c
tree8363dbb0ad22fc7884bea2eeada9eb878d94c70d
parenta65fd81106a677e870d2f440aa3613deb546c828
window: Make set_focus equal to grab_focus

Make gtk_window_set_focus call gtk_widget_grab_focus internally.
This means that set_focus can now end up putting the focus on
a child of the passed-in widget, and makes the focus-widget
property work for setting initial focus to (the child of) an
entry in a ui file.
gtk/gtkwindow.c